package xyz.chaobei.feature.factory;

import xyz.chaobei.feature.entity.Person;

/**
 * @author <a href='mailto:maruichao52@gmail.com'>MRC</a>
 * @since 2021/2/3
 */
public interface PersonFactory<E extends Person> {
    /**
     * 编译器按照指定参数，寻找合适的实现
     *
     * @param name
     * @param age
     * @return
     */
    E create(String name, int age);
}
